package net.kong.sns.rest.client.model;

import java.util.HashSet;
import java.util.Set;


/**
 * @author <a href="mailto:lanhuai@gmail.com">Ning Yubin</a>
 * @version $Id: UserInfo.java,v 1.3.2.1 2009/12/09 09:47:20 wangyuanming Exp $
 */
public interface UserInfo extends BaseObject {
    long getUserId();

    String getUsername();

    String getNickname();

    String getSex();

    String getBirthday();

    public enum Field {
        USER_ID, NAME, NICKNAME, SEX, BIRTHDAY;

        @Override
        public String toString() {
            return name().toLowerCase();
        }
        
        public static Set<String> valuesSet() {
            Field[] fields = Field.values();
            Set<String> strFields = new HashSet<String>();
            for(int i=0;i<fields.length;i++) {
                strFields.add(fields[i].toString());
            }
            return strFields;
        }
        
    }
}
